﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="stock.aspx.cs" Inherits="MobileWebApp.stock" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    
</head>
<body>

    <mobile:StyleSheet id="StyleSheet1" runat="server">
        <mobile:Style font-size="Large" font-name="Arial" font-bold="true"
            forecolor="red" font-italic="true" backcolor="#E0E0E0" 
            wrapping="wrap" name="Style1">
        </mobile:Style>
        <mobile:Style font-size="Normal" font-name="Arial" font-bold="false" 
           forecolor="Blue" font-italic="true" backcolor="blue" 
           wrapping="NoWrap" name="Style2">
        </mobile:Style>
        <mobile:Style font-size="Small" font-name="Verdana" 
           font-bold="false" forecolor="Green" font-italic="false" 
           backcolor="Green" wrapping="NoWrap" name="Style3">
        </mobile:Style>        
    </mobile:StyleSheet>


    <mobile:Form ID="frmPrincipal" Runat="server">

        <mobile:label id="Label3" runat="server" StyleReference="Style3">Centro</mobile:label>
        <mobile:SelectionList Runat="server" ID="cmbCentro" StyleReference="Style3"
            OnSelectedIndexChanged="cmbCentro_SelectedIndexChanged" Font-Size="Small" ></mobile:SelectionList>
        <mobile:label id="Label1" runat="server" StyleReference="Style3">Almacen</mobile:label>
        <mobile:SelectionList Runat="server" ID="cmbAlmacen"></mobile:SelectionList>
        <mobile:label id="Label2" runat="server" StyleReference="Style3">Material</mobile:label>
        <mobile:TextBox id="txtCodMaterial" Text="" MaxLength ="18" runat="server"/>
        
        <mobile:Command ID="btnVerStock" Runat="server" OnClick="btnVerStock_Click">Ver Stock</mobile:Command>
        
        <mobile:ObjectList ID="olstStock" Runat="server" AutoGenerateFields="False" 
             LabelStyle-StyleReference="Style3" StyleReference="Style3">
            <Field DataField="DescDisp" Title="Centro-Alm-Lote:Stock" Visible="false" />
            
            <Field DataField="DescCentro" Title="Centro" />
            <Field DataField="DescAlmacen" Title="Almacen" />
            <Field DataField="DescMaterial" Title="Material" />
            <Field DataField="StockDisponible" Title="Disponible" />
            <Field DataField="StockLibre" Title="Libre Util" />
            <Field DataField="StockPedidoCliente" Title="Pedidos" />
            <Field DataField="StockEntregaCliente" Title="Entregas" />
        </mobile:ObjectList>
        
    </mobile:Form>
</body>
</html>
